<template>
  <div class="navTop">
    <i class="iconfont icon-jiantouzuo" @click="withdraw"></i>
    <slot></slot>
    <i class="iconfont icon-qita ico"></i>
  </div>
</template>

<script>
export default {
  methods: {
    withdraw() {
      this.$router.push("/");
    },
  },
};
</script>

<style lang="scss" scoped>
.navTop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  background-color: #f7f7f7;
  height: 80px;
  line-height: 80px;
  font-size: 35px;
  text-align: center;
  .icon-jiantouzuo {
    position: absolute;
    left: 20px;
    font-size: 40px;
  }
  .ico {
    position: absolute;
    top: 0px;
    right: 30px;
    font-size: 60px;
  }
}
</style>